#ifndef bailian_SwfDataVo_h
#define bailian_SwfDataVo_h


#include "../PreInclude.h"


class SwfPosData{
public:
    string cName;
    float nBaseX;
    float nBaseY; 
};

class CSwfBitVo:public CCObject{
public:
    ~CSwfBitVo();
    vector<CCSpriteFrame*> gSpriteFrame;
    vector<SwfPosData*> gBaseDataConf;
 
    
    
};


class CSwfBitContainer:public CCNode{
public:
    
    CREATE_FUNC(CSwfBitContainer);
    void setSwfBitVo(CSwfBitVo* vo);
    vector<CCSprite*> gSprite;
    void setOpacity(GLubyte opacity);
    void initWithFile(const char*);
    void setContainerPos(CCSprite* container,const CCPoint&  base);
};


class CSwfDataVo:public CCObject{
public:
     
    
	CSwfDataVo();
    void setUrl(const string& url,bool force=false);
    virtual ~CSwfDataVo();
    void clear();
    CSwfBitVo*  getBitAndPos(const char* frameName, int index, int  dir = 1);
    CSwfBitVo*  getBitAndPos9(const char* frameName, int index, int  dir = 1);
    
    void clearCache();
    string cUrl;
    string oUrl; 
    vector<SwfPosData*> gBaseDataConf;
    string curKey;
    string cFileName;
    bool is9Part;

protected: 
    int plistCount; 
    vector<string> plists;
    map<int ,CCPoint> baseDatas;
     
    
  
};

#endif
